<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta content="telephone=no" name="format-detection">
    <title>查询老赖</title>
    <link rel="stylesheet" href="/laolaipro/Public/Home/css/weui.min.css">
    <link rel="stylesheet" href="/laolaipro/Public/Home/css/top.css">
    
</head>

<body class="bgeee">
    <div class="header-container">
        <div class="weui-cell">
            <div class="weui-cell__hd fs0">
                <img src="/laolaipro/Public/Home/img/lefticon.png" class="slimg" />
            </div>
            <div class="weui-cell__bd texcen">
                <p>认证资料</p>
            </div>
        </div>
    </div>
    <div class="xq_container">
        <div class="pad10 colbbb">认证个人资料(已经认证不可修改)</div>
        <div class="weui-cells mat0 uinput ">
            <div class="weui-cell">
                <div class="weui-cell__hd">姓名</div>
                <div class="weui-cell__bd">
                    <input type="text" name="name" class="weui-input name" placeholder="输入姓名" value="<?php echo ($userinfo['name']); ?>" <?php if($userinfo['status'] != 0): ?>readonly<?php endif; ?>>
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd">身份证号</div>
                <div class="weui-cell__bd">
                    <input type="text" name="cardid" class="weui-input cardid" placeholder="输入身份证号" value="<?php echo ($userinfo['cardid']); ?>" <?php if($userinfo['status'] != 0): ?>readonly<?php endif; ?>>
                </div>
            </div>
            
        </div>

        <div class="pad10 colbbb">完善个人信息</div>
        <div class="weui-cells mat0 uinput">
            <div class="weui-cell">
                <div class="weui-cell__hd">行业</div>
                <div class="weui-cell__bd">
                    <input type="text" name="hy" class="weui-input hy" placeholder="输入行业" value="<?php echo ($userinfo['hy']); ?>">
                </div>
            </div>
            <div class="weui-cell">
                <div class="weui-cell__hd">职业</div>
                <div class="weui-cell__bd">
                    <input type="text" name="zhiw" class="weui-input zhiw" placeholder="输入职业" value="<?php echo ($userinfo['zhiw']); ?>">
                </div>
            </div>
        </div>
        
        <div class="weui-btn-area">
            <a class="weui-btn bg00f" href="javascript:" id="showTooltips">保存</a>
        </div>

    </div>
</body>

<script src="/laolaipro/Public/Home/js/jquery.js"></script>
<script src="/laolaipro/Public/Home/js/zepto.min.js"></script>
<script src="/laolaipro/Public/Home/js/layer/layer.js"></script>
<script src="/laolaipro/Public/Home/js/public.js"></script>

	<script>
        $("#showTooltips").on('click',function () {
            var ajadata = {};
            ajadata.hy = $(".hy").val();
            ajadata.zhiw = $(".zhiw").val();
            <?php if($userinfo['status'] == 0): ?>ajadata.name = $(".name").val();
            ajadata.cardid = $(".cardid").val();<?php endif; ?>
            for(var index in ajadata){
                if (!ajadata[index]) {
                    layer.msg("数据不完整！");
                    return;
                }
            }
            requestUrl("<?php echo U('Member/yzinfo');?>",ajadata,function ( res ) {
                layer.msg(res.message);
                if (res.flag == "success") {
                    setTimeout(function () {
                        window.location.href = "<?php echo U('Member/self');?>";
                    },500);
                }
            })
        });
	</script>

</html>